package creational.builder;

/**
 * @ClassName: ComputerBuilder
 * @Description: 抽象生成器
 * @Author: liu-hao
 * @Date: 2023-05-19 23:06
 * @Version: 1.0
 **/
public abstract class ComputerBuilder {

    protected Computer computer;

    public Computer getComputer() {
        return computer;
    }

    public ComputerBuilder buildComputer() {
        computer = new Computer();
        System.out.println("生成了一台电脑！！！");
        return this;
    }

    public abstract ComputerBuilder buildMaster();

    public abstract ComputerBuilder buildScreen();

    public abstract ComputerBuilder buildKeyboard();

    public abstract ComputerBuilder buildMouse();

    public abstract ComputerBuilder buildAudio();
}
